#ifndef MAPEDIT_H
#define MAPEDIT_H

#include <QObject>
#include <QPixmap>
#include "opencv2/core/core.hpp"
#include "opencv2/opencv.hpp"
#include "common.h"

class MapEdit : public QObject
{
    Q_OBJECT
public:
    explicit MapEdit(QObject *parent = nullptr);

    cv::Mat m_MapMat;

    cv::Point m_StratPoint;
    double m_Direction;
    bool m_StartNewMap = false;

    int VirtualWall_X;
    int VirtualWall_Y;

    bool m_isVirtualWal = false;
    QString m_Action_Data;
signals:
    void sig_EndMapPixmap(QPixmap pixmap);
public slots:

    void slot_newMapEdit(QString type,QStringList dataList);

    void slot_MapPixmap(QPixmap pixmap,QString data);


signals:
};

#endif // MAPEDIT_H
